$ lsb_release -d
Output:
Description: Ubuntu 12.04 LTS Get codename
$ lsb_release -c
Codebase: precise